<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<s:if test="hasActionErrors() || hasActionMessages()">
	<s:include value="messages.jsp">
		<s:param name="errorMsg">
			<s:actionerror />
			<s:actionmessage/>
		</s:param>
	</s:include>
</s:if>

<s:form id="loginForm" cssStyle="padding-left:50px">
	<h2 class="pad_bot1">Login..</h2>
	<table>
		<tr>
			<td class="tdRight"><s:label for="loginIdTxt" value="%{getText('docHunt.login.email')}" /></td>
			<td><s:textfield name="userDTO.loginId" id="loginIdTxt"
					grey-vlaue="Type Your E-mail Here" cssClass="input"></s:textfield>
			</td>
		</tr>
		<tr>
			<td class="tdRight"><s:label for="passwordTxt" value="%{getText('docHunt.login.password')}" /></td>
			<td><s:password name="userDTO.password" id="passwordTxt"
					grey-vlaue="Type Your Password" cssClass="input"></s:password>
			</td>
		</tr>
		<tr>
			<s:if test="fromAction=='homeAction'">
				<td></td><td></td>
			</s:if>
			<s:else>
				<td class="tdRight"><s:label for="verificationCodeTxt" value="%{getText('docHunt.login.verificationCode')}" /></td>
				<td><s:textfield name="userDTO.verificationCode" id="verificationCodeTxt"
						grey-vlaue="Type Your Verification Code Here" cssClass="input"></s:textfield>
				</td>
			</s:else>	
		</tr>
		<tr>
			<td>
				<br />
			</td>
		</tr>	
		<tr>
			<td colspan="2" align="center">
				<button type="button" value="Register" class="button" onclick="formSubmit(this.value,this.form,'doctorRegSubmit.action');">Login</button>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<button type="button" value="Cancel" class="button">Cancel</button>
			</td>
		</tr>
		<tr>
			<td><br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />
				<br /> <br />
			</td>
		</tr>
	</table>
</s:form>
<script type="text/javascript">
	applyStyle();	
</script>